
<!DOCTYPE HTML>
<html lang="zh-hans" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>approvemanage · 合同管理</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content="Gj">
        
        
    
    <link rel="stylesheet" href="../../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-chapter-fold/chapter-fold.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-search-pro/search.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-prism/prism-tomorrow.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
        <link rel="stylesheet" href="../../styles/website.css">
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="sealmanage.html" />
    
    
    <link rel="prev" href="activate.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="输入并搜索" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../../">
            
                <a href="../../">
            
                    
                    概要
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../../Framework.html">
            
                <a href="../../Framework.html">
            
                    
                    架构
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">src目录</li>
        
        
    
        <li class="chapter " data-level="2.1" data-path="../api.html">
            
                <a href="../api.html">
            
                    
                    api
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2" data-path="../assets.html">
            
                <a href="../assets.html">
            
                    
                    assets
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3" data-path="../components.html">
            
                <a href="../components.html">
            
                    
                    components
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4" data-path="../filters.html">
            
                <a href="../filters.html">
            
                    
                    filters
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.5" data-path="../mixins.html">
            
                <a href="../mixins.html">
            
                    
                    mixins
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.6" data-path="../router.html">
            
                <a href="../router.html">
            
                    
                    router
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.7" data-path="../store.html">
            
                <a href="../store.html">
            
                    
                    store
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.8" data-path="../styles.html">
            
                <a href="../styles.html">
            
                    
                    styles
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.9" data-path="../utils.html">
            
                <a href="../utils.html">
            
                    
                    utils
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.10" data-path="./">
            
                <a href="./">
            
                    
                    views
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.10.1" data-path="activate.html">
            
                <a href="activate.html">
            
                    
                    activate
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="2.10.2" data-path="approvemanage.html">
            
                <a href="approvemanage.html">
            
                    
                    approvemanage
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.10.3" data-path="sealmanage.html">
            
                <a href="sealmanage.html">
            
                    
                    sealmanage
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.10.4" data-path="deptmanage.html">
            
                <a href="deptmanage.html">
            
                    
                    deptmanage
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.10.5" data-path="faildoc.html">
            
                <a href="faildoc.html">
            
                    
                    faildoc
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.10.6" data-path="files.html">
            
                <a href="files.html">
            
                    
                    files
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.10.7" data-path="init.html">
            
                <a href="init.html">
            
                    
                    init
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.10.8" data-path="layout.html">
            
                <a href="layout.html">
            
                    
                    layout
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.10.9" data-path="login.html">
            
                <a href="login.html">
            
                    
                    login
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.10.10" data-path="myfiles.html">
            
                <a href="myfiles.html">
            
                    
                    myfiles
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.10.11" data-path="passmail.html">
            
                <a href="passmail.html">
            
                    
                    passmail
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.10.12" data-path="redirect.html">
            
                <a href="redirect.html">
            
                    
                    redirect
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.10.13" data-path="sysmanage.html">
            
                <a href="sysmanage.html">
            
                    
                    sysmanage
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.10.14" data-path="template.html">
            
                <a href="template.html">
            
                    
                    template
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.10.15" data-path="updateinfo.html">
            
                <a href="updateinfo.html">
            
                    
                    updateinfo
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.10.16" data-path="usermanage.html">
            
                <a href="usermanage.html">
            
                    
                    usermanage
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.11" data-path="../config.html">
            
                <a href="../config.html">
            
                    
                    配置文件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.12" data-path="../newPage.html">
            
                <a href="../newPage.html">
            
                    
                    新建页面
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            本书使用 GitBook 发布
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../.." >approvemanage</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h3 id="&#x5BA1;&#x6279;&#x89C4;&#x5219;&#x7BA1;&#x7406;">&#x5BA1;&#x6279;&#x89C4;&#x5219;&#x7BA1;&#x7406;</h3>
<p><img src="../../images/approvate.jpg" alt=""></p>
<h5 id="indexjs">index.js</h5>
<blockquote>
<p>&#x8868;&#x683C;&#x9875;&#x9762;&#x3002;</p>
</blockquote>
<pre class="language-"><code class="lang-javascript"><span class="token operator">&lt;</span>script<span class="token operator">&gt;</span>
<span class="token keyword">import</span> <span class="token punctuation">{</span> rule <span class="token punctuation">}</span> <span class="token keyword">from</span> <span class="token string">&apos;@/api&apos;</span><span class="token punctuation">;</span><span class="token comment">// &#x63A5;&#x53E3;&#x5F15;&#x5165;</span>
<span class="token keyword">import</span> <span class="token punctuation">{</span>
    Pagination <span class="token keyword">as</span> paginationTemp<span class="token punctuation">,</span> <span class="token comment">// &#x5206;&#x9875;&#x7EC4;&#x4EF6;</span>
    ToolButton <span class="token keyword">as</span> toolBtn <span class="token comment">//&#x5DE5;&#x5177;&#x680F;&#x7EC4;&#x4EF6;</span>
<span class="token punctuation">}</span> <span class="token keyword">from</span> <span class="token string">&apos;@/components&apos;</span><span class="token punctuation">;</span>
<span class="token keyword">import</span> <span class="token punctuation">{</span> RuleType <span class="token keyword">as</span> RuleTypeEnum <span class="token punctuation">}</span> <span class="token keyword">from</span> <span class="token string">&apos;@/utils/Enum/FEnum&apos;</span><span class="token punctuation">;</span> <span class="token comment">// &#x670D;&#x52A1;&#x7AEF;&#x679A;&#x4E3E;</span>
<span class="token keyword">import</span> <span class="token punctuation">{</span> RouterToEnum <span class="token punctuation">}</span> <span class="token keyword">from</span> <span class="token string">&apos;@/utils/Enum/VEnum&apos;</span><span class="token punctuation">;</span> <span class="token comment">// &#x524D;&#x7AEF;&#x679A;&#x4E3E;</span>

<span class="token keyword">export</span> <span class="token keyword">default</span> <span class="token punctuation">{</span>
    components<span class="token operator">:</span> <span class="token punctuation">{</span> paginationTemp<span class="token punctuation">,</span> toolBtn <span class="token punctuation">}</span><span class="token punctuation">,</span> <span class="token comment">// &#x5C40;&#x90E8;&#x7EC4;&#x4EF6;&#x6CE8;&#x518C;</span>
    <span class="token function">data</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
        <span class="token keyword">return</span> <span class="token punctuation">{</span>
            loading<span class="token operator">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span> <span class="token comment">// loading</span>
            btnEnable<span class="token operator">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span> <span class="token comment">// &#x5B9A;&#x4E49;&#x6309;&#x94AE;&#x662F;&#x5426;&#x7981;&#x7528;</span>
            listQuery<span class="token operator">:</span> <span class="token punctuation">{</span> page<span class="token operator">:</span> <span class="token number">0</span><span class="token punctuation">,</span> count<span class="token operator">:</span> <span class="token number">10</span> <span class="token punctuation">}</span><span class="token punctuation">,</span> <span class="token comment">// &#x9ED8;&#x8BA4;&#x67E5;&#x8BE2;&#x53C2;&#x6570; &#x6DFB;&#x52A0;&#x5206;&#x9875;</span>
            tableData<span class="token operator">:</span> <span class="token punctuation">[</span><span class="token punctuation">]</span><span class="token punctuation">,</span> <span class="token comment">// &#x8868;&#x683C;&#x6570;&#x636E;</span>
            multipleSelection<span class="token operator">:</span> <span class="token punctuation">[</span><span class="token punctuation">]</span><span class="token punctuation">,</span> <span class="token comment">// &#x591A;&#x9009;</span>
            page<span class="token operator">:</span> <span class="token punctuation">{</span> current<span class="token operator">:</span> <span class="token number">1</span><span class="token punctuation">,</span> total<span class="token operator">:</span> <span class="token number">0</span> <span class="token punctuation">}</span><span class="token punctuation">,</span> <span class="token comment">// element &#x7EC4;&#x4EF6;&#x7684;&#x5F53;&#x524D;&#x9875; &#x548C; &#x603B;&#x6570;</span>
        <span class="token punctuation">}</span>
    <span class="token punctuation">}</span><span class="token punctuation">,</span>
    computed<span class="token operator">:</span> <span class="token punctuation">{</span> <span class="token comment">// &#x8BA1;&#x7B97;&#x51FD;&#x6570;</span>
        <span class="token function">fileTypeEnum</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token comment">// &#x9002;&#x7528;&#x6587;&#x6863;&#x7C7B;&#x578B; &#x56FD;&#x9645;&#x5316;&#x914D;&#x7F6E;&#x6587;&#x4EF6;</span>
            <span class="token keyword">return</span> <span class="token function">require</span><span class="token punctuation">(</span><span class="token template-string"><span class="token template-punctuation string">`</span><span class="token string">./temp/conf</span><span class="token template-punctuation string">`</span></span><span class="token punctuation">)</span><span class="token punctuation">[</span><span class="token string">&apos;fileTypeEnum&apos;</span> <span class="token operator">+</span> <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">$t</span><span class="token punctuation">(</span><span class="token string">&quot;lang.type&quot;</span><span class="token punctuation">)</span><span class="token punctuation">]</span>
        <span class="token punctuation">}</span>
    <span class="token punctuation">}</span><span class="token punctuation">,</span>
    methods<span class="token operator">:</span> <span class="token punctuation">{</span>
        <span class="token function">searchChange</span><span class="token punctuation">(</span><span class="token parameter">key<span class="token punctuation">,</span> e</span><span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token comment">// &#x641C;&#x7D22;&#x680F; &#x53D1;&#x751F;&#x6539;&#x53D8;&#x65F6;&#x89E6;&#x53D1;&#xFF0C; &#x4E3B;&#x8981;&#x89E3;&#x51B3;&#x8F93;&#x5165;&#x4E3A;&#x7A7A;&#x65F6;&#xFF0C; &#x79FB;&#x9664;key/value</span>
            <span class="token keyword">if</span> <span class="token punctuation">(</span><span class="token operator">!</span>e<span class="token punctuation">)</span> <span class="token keyword">delete</span> <span class="token keyword">this</span><span class="token punctuation">.</span>listQuery<span class="token punctuation">[</span>key<span class="token punctuation">]</span><span class="token punctuation">;</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        <span class="token function">handleSelectionChange</span><span class="token punctuation">(</span><span class="token parameter">val</span><span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token comment">// &#x591A;&#x9009;&#x65F6; &#x89E6;&#x53D1;</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>multipleSelection <span class="token operator">=</span> val<span class="token punctuation">;</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>btnEnable <span class="token operator">=</span> val<span class="token punctuation">.</span>length <span class="token operator">===</span> <span class="token number">1</span><span class="token punctuation">;</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        <span class="token keyword">async</span> <span class="token function">del</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token comment">// &#x5220;&#x9664;</span>
            <span class="token keyword">try</span> <span class="token punctuation">{</span>
                <span class="token keyword">const</span> res <span class="token operator">=</span> <span class="token keyword">await</span> <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">$confirm</span><span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">$t</span><span class="token punctuation">(</span><span class="token string">&quot;approvemanage.msg.isDel&quot;</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
                <span class="token keyword">if</span> <span class="token punctuation">(</span>res <span class="token operator">==</span> <span class="token string">&quot;confirm&quot;</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
                    <span class="token keyword">let</span> <span class="token punctuation">{</span> _id <span class="token punctuation">}</span> <span class="token operator">=</span> <span class="token keyword">this</span><span class="token punctuation">.</span>multipleSelection<span class="token punctuation">[</span><span class="token number">0</span><span class="token punctuation">]</span><span class="token punctuation">;</span>
                    <span class="token keyword">this</span><span class="token punctuation">.</span>loading <span class="token operator">=</span> <span class="token boolean">true</span><span class="token punctuation">;</span>
                    <span class="token keyword">let</span> <span class="token punctuation">{</span> data <span class="token punctuation">}</span> <span class="token operator">=</span> <span class="token keyword">await</span> rule<span class="token punctuation">.</span><span class="token function">rule_delete</span><span class="token punctuation">(</span>_id<span class="token punctuation">)</span><span class="token punctuation">;</span>
                    <span class="token keyword">this</span><span class="token punctuation">.</span>loading <span class="token operator">=</span> <span class="token boolean">false</span><span class="token punctuation">;</span>
                    <span class="token keyword">this</span><span class="token punctuation">.</span>$message<span class="token punctuation">.</span><span class="token function">success</span><span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">$t</span><span class="token punctuation">(</span><span class="token string">&quot;approvemanage.msg.success&quot;</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
                    <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">initList</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
                <span class="token punctuation">}</span>
            <span class="token punctuation">}</span> <span class="token keyword">catch</span> <span class="token punctuation">(</span>error<span class="token punctuation">)</span> <span class="token punctuation">{</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>loading <span class="token operator">=</span> <span class="token boolean">false</span><span class="token punctuation">;</span>
            <span class="token punctuation">}</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        <span class="token keyword">async</span> <span class="token function">edit</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token comment">// &#x8DF3;&#x8F6C;&#x7F16;&#x8F91;&#x9875;&#x9762;</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>$store<span class="token punctuation">.</span><span class="token function">dispatch</span><span class="token punctuation">(</span><span class="token string">&quot;setParams&quot;</span><span class="token punctuation">,</span> <span class="token keyword">this</span><span class="token punctuation">.</span>multipleSelection<span class="token punctuation">[</span><span class="token number">0</span><span class="token punctuation">]</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>$router<span class="token punctuation">.</span><span class="token function">push</span><span class="token punctuation">(</span><span class="token punctuation">{</span> path<span class="token operator">:</span> <span class="token string">&quot;/updateapprove&quot;</span><span class="token punctuation">,</span> query<span class="token operator">:</span> <span class="token punctuation">{</span> to<span class="token operator">:</span> RouterToEnum<span class="token punctuation">.</span>edit <span class="token punctuation">}</span> <span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        <span class="token function">openAdd</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token comment">// &#x8DF3;&#x8F6C;&#x6DFB;&#x52A0;&#x9875;&#x9762;</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>$router<span class="token punctuation">.</span><span class="token function">push</span><span class="token punctuation">(</span><span class="token punctuation">{</span> path<span class="token operator">:</span> <span class="token string">&quot;/updateapprove&quot;</span><span class="token punctuation">,</span> query<span class="token operator">:</span> <span class="token punctuation">{</span> to<span class="token operator">:</span> RouterToEnum<span class="token punctuation">.</span>add <span class="token punctuation">}</span> <span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        <span class="token function">search</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span> <span class="token comment">// &#x641C;&#x7D22;&#x51FD;&#x6570;</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">initList</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        <span class="token keyword">async</span> <span class="token function">initList</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token comment">// &#x521D;&#x59CB;&#x5316;&#x7684;&#x6570;&#x636E;</span>
            <span class="token keyword">const</span> <span class="token function-variable function">sortHandler</span> <span class="token operator">=</span> <span class="token punctuation">(</span><span class="token parameter">item1<span class="token punctuation">,</span> item2</span><span class="token punctuation">)</span> <span class="token operator">=&gt;</span> <span class="token punctuation">{</span>
                <span class="token keyword">return</span> item2<span class="token punctuation">.</span>level <span class="token operator">-</span> item1<span class="token punctuation">.</span>level<span class="token punctuation">;</span>
            <span class="token punctuation">}</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>loading <span class="token operator">=</span> <span class="token boolean">true</span><span class="token punctuation">;</span>
            <span class="token keyword">const</span> query <span class="token operator">=</span> <span class="token punctuation">{</span><span class="token operator">...</span><span class="token keyword">this</span><span class="token punctuation">.</span>listQuery<span class="token punctuation">,</span> type<span class="token operator">:</span> RuleTypeEnum<span class="token punctuation">.</span>audit<span class="token punctuation">}</span><span class="token punctuation">;</span>
            <span class="token keyword">const</span> <span class="token punctuation">[</span><span class="token punctuation">{</span> data<span class="token operator">:</span> page <span class="token punctuation">}</span><span class="token punctuation">,</span> <span class="token punctuation">{</span> data<span class="token operator">:</span> count <span class="token punctuation">}</span><span class="token punctuation">]</span> <span class="token operator">=</span> <span class="token keyword">await</span> Promise<span class="token punctuation">.</span><span class="token function">all</span><span class="token punctuation">(</span><span class="token punctuation">[</span>rule<span class="token punctuation">.</span><span class="token function">rule_page</span><span class="token punctuation">(</span>query<span class="token punctuation">)</span><span class="token punctuation">,</span> rule<span class="token punctuation">.</span><span class="token function">rule_count</span><span class="token punctuation">(</span>query<span class="token punctuation">)</span><span class="token punctuation">]</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>page<span class="token punctuation">.</span>total <span class="token operator">=</span> count<span class="token punctuation">.</span>data<span class="token punctuation">.</span>count<span class="token punctuation">;</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>loading <span class="token operator">=</span> <span class="token boolean">false</span><span class="token punctuation">;</span>
            <span class="token keyword">let</span> formData <span class="token operator">=</span> page<span class="token punctuation">.</span>data<span class="token punctuation">.</span><span class="token function">map</span><span class="token punctuation">(</span><span class="token parameter">item</span> <span class="token operator">=&gt;</span> <span class="token punctuation">{</span>
                <span class="token keyword">return</span> <span class="token punctuation">{</span>
                    <span class="token operator">...</span>item<span class="token punctuation">,</span>
                    auditPath<span class="token operator">:</span> item<span class="token punctuation">.</span>auditPath<span class="token punctuation">.</span><span class="token function">sort</span><span class="token punctuation">(</span>sortHandler<span class="token punctuation">)</span><span class="token punctuation">,</span>
                <span class="token punctuation">}</span>
            <span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>tableData <span class="token operator">=</span> formData<span class="token punctuation">;</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
    <span class="token punctuation">}</span><span class="token punctuation">,</span>
    <span class="token function">created</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token comment">// &#x94A9;&#x5B50;&#x51FD;&#x6570; &#x9875;&#x9762;&#x52A0;&#x8F7D;&#x524D;&#x89E6;&#x53D1;</span>
        <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">initList</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
        <span class="token keyword">this</span><span class="token punctuation">.</span>$store<span class="token punctuation">.</span><span class="token function">dispatch</span><span class="token punctuation">(</span><span class="token string">&quot;clearParams&quot;</span><span class="token punctuation">)</span><span class="token punctuation">;</span><span class="token comment">// &#x6E05;&#x7406;&#x8DF3;&#x8F6C;&#x53C2;&#x6570;</span>
    <span class="token punctuation">}</span>
<span class="token punctuation">}</span>
<span class="token operator">&lt;</span><span class="token operator">/</span>script<span class="token operator">&gt;</span>
</code></pre>
<h5 id="tempindexvue">temp/index.vue</h5>
<blockquote>
<p>&#x6DFB;&#x52A0;/&#x7F16;&#x8F91;&#x9875;&#x9762;</p>
</blockquote>
<pre class="language-"><code class="lang-javascript"><span class="token operator">&lt;</span>script<span class="token operator">&gt;</span>
<span class="token keyword">import</span> <span class="token punctuation">{</span> mapGetters <span class="token punctuation">}</span> <span class="token keyword">from</span> <span class="token string">&quot;vuex&quot;</span><span class="token punctuation">;</span>
<span class="token keyword">import</span> <span class="token punctuation">{</span> userLevel<span class="token punctuation">,</span> autidUsers<span class="token punctuation">,</span> LimitLevel<span class="token punctuation">,</span> <span class="token constant">S2C</span> <span class="token punctuation">}</span> <span class="token keyword">from</span> <span class="token string">&quot;./conf&quot;</span><span class="token punctuation">;</span><span class="token comment">// &#x5BA1;&#x6279;&#x89C4;&#x5219;&#x914D;&#x7F6E;&#x6587;&#x4EF6;</span>
<span class="token keyword">import</span> <span class="token punctuation">{</span> rule<span class="token punctuation">,</span> dept <span class="token punctuation">}</span> <span class="token keyword">from</span> <span class="token string">&quot;@/api&quot;</span><span class="token punctuation">;</span><span class="token comment">// &#x63A5;&#x53E3;&#x6587;&#x4EF6;</span>
<span class="token keyword">import</span> <span class="token punctuation">{</span> RuleType <span class="token keyword">as</span> RuleTypeEnum <span class="token punctuation">}</span> <span class="token keyword">from</span> <span class="token string">&apos;@/utils/Enum/FEnum&apos;</span><span class="token punctuation">;</span><span class="token comment">// &#x670D;&#x52A1;&#x7AEF;&#x679A;&#x4E3E;</span>
<span class="token keyword">import</span> <span class="token punctuation">{</span> RouterToEnum <span class="token punctuation">}</span> <span class="token keyword">from</span> <span class="token string">&apos;@/utils/Enum/VEnum&apos;</span><span class="token punctuation">;</span><span class="token comment">// &#x524D;&#x7AEF;&#x679A;&#x4E3E;</span>

<span class="token keyword">export</span> <span class="token keyword">default</span> <span class="token punctuation">{</span>
    <span class="token function">data</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
        <span class="token keyword">return</span> <span class="token punctuation">{</span>
            form<span class="token operator">:</span> <span class="token punctuation">{</span> categories<span class="token operator">:</span> <span class="token punctuation">[</span><span class="token punctuation">]</span><span class="token punctuation">,</span> auditPath<span class="token operator">:</span> <span class="token punctuation">[</span><span class="token punctuation">]</span> <span class="token punctuation">}</span><span class="token punctuation">,</span><span class="token comment">// &#x8868;&#x5355;&#x6570;&#x636E;</span>
            loading<span class="token operator">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span><span class="token comment">// loading</span>
            selectLevel<span class="token operator">:</span> <span class="token punctuation">{</span>
                <span class="token keyword">default</span><span class="token operator">:</span> <span class="token string">&quot;1&quot;</span><span class="token punctuation">,</span> <span class="token comment">//&#x9ED8;&#x8BA4;&#x4E00;&#x7EA7;</span>
                deptLevel<span class="token operator">:</span> <span class="token punctuation">[</span><span class="token punctuation">]</span><span class="token punctuation">,</span> <span class="token comment">//&#x90E8;&#x95E8;&#x7B49;&#x7EA7;</span>
            <span class="token punctuation">}</span><span class="token punctuation">,</span>
            auditList<span class="token operator">:</span> <span class="token punctuation">[</span><span class="token number">1</span><span class="token punctuation">]</span> <span class="token comment">//&#x9ED8;&#x8BA4;&#x4E00;&#x7EA7;</span>
        <span class="token punctuation">}</span><span class="token punctuation">;</span>
    <span class="token punctuation">}</span><span class="token punctuation">,</span>
    computed<span class="token operator">:</span> <span class="token punctuation">{</span><span class="token comment">//&#x8BA1;&#x7B97;&#x51FD;&#x6570;</span>
        <span class="token operator">...</span><span class="token function">mapGetters</span><span class="token punctuation">(</span><span class="token punctuation">[</span><span class="token string">&quot;queryParams&quot;</span><span class="token punctuation">]</span><span class="token punctuation">)</span><span class="token punctuation">,</span><span class="token comment">// vuex getters&#x4F7F;&#x7528;</span>
        <span class="token function">title</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token comment">// &#x6839;&#x636E;queryParams&#x7684;name &#x5224;&#x65AD;&#x65F6; &#x6DFB;&#x52A0; &#x8FD8;&#x662F;&#x7F16;&#x8F91;&#x3002;&#x6539;&#x53D8;title&#x7684;&#x503C;</span>
            <span class="token keyword">if</span> <span class="token punctuation">(</span><span class="token operator">!</span><span class="token keyword">this</span><span class="token punctuation">.</span>queryParams<span class="token punctuation">.</span>name<span class="token punctuation">)</span> <span class="token punctuation">{</span>
                <span class="token keyword">return</span> <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">$t</span><span class="token punctuation">(</span><span class="token string">&quot;approvemanage.temp.title.add&quot;</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
            <span class="token punctuation">}</span> <span class="token keyword">else</span> <span class="token punctuation">{</span>
                <span class="token keyword">return</span> <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">$t</span><span class="token punctuation">(</span><span class="token string">&quot;approvemanage.temp.title.edit&quot;</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
            <span class="token punctuation">}</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        <span class="token function">fileTypeList</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token comment">// &#x83B7;&#x53D6;&#x56FD;&#x9645;&#x5316;&#x7684; &#x6587;&#x6863;&#x7C7B;&#x578B;</span>
            <span class="token keyword">return</span> <span class="token function">require</span><span class="token punctuation">(</span><span class="token template-string"><span class="token template-punctuation string">`</span><span class="token string">./conf</span><span class="token template-punctuation string">`</span></span><span class="token punctuation">)</span><span class="token punctuation">[</span><span class="token string">&quot;fileTypeList&quot;</span> <span class="token operator">+</span> <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">$t</span><span class="token punctuation">(</span><span class="token string">&quot;lang.type&quot;</span><span class="token punctuation">)</span><span class="token punctuation">]</span><span class="token punctuation">;</span>
        <span class="token punctuation">}</span>
    <span class="token punctuation">}</span><span class="token punctuation">,</span>
    methods<span class="token operator">:</span> <span class="token punctuation">{</span>
        <span class="token function">back</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token comment">// &#x8FD4;&#x56DE;&#x4E0A;&#x4E00;&#x9875;</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>$router<span class="token punctuation">.</span><span class="token function">go</span><span class="token punctuation">(</span><span class="token operator">-</span><span class="token number">1</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        <span class="token keyword">async</span> <span class="token function">submit</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token comment">// &#x8868;&#x5355;&#x63D0;&#x4EA4;</span>
            <span class="token keyword">let</span> <span class="token punctuation">{</span> name<span class="token punctuation">,</span> categories <span class="token punctuation">}</span> <span class="token operator">=</span> <span class="token constant">JSON</span><span class="token punctuation">.</span><span class="token function">parse</span><span class="token punctuation">(</span>
                <span class="token constant">JSON</span><span class="token punctuation">.</span><span class="token function">stringify</span><span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span>form<span class="token punctuation">)</span>
            <span class="token punctuation">)</span><span class="token punctuation">;</span>
            <span class="token keyword">let</span> auditPath <span class="token operator">=</span> <span class="token punctuation">[</span><span class="token punctuation">]</span><span class="token punctuation">;</span>
            <span class="token keyword">const</span> level <span class="token operator">=</span> <span class="token keyword">this</span><span class="token punctuation">.</span>selectLevel<span class="token punctuation">.</span>default<span class="token punctuation">;</span>
            <span class="token keyword">for</span> <span class="token punctuation">(</span><span class="token keyword">let</span> i <span class="token operator">=</span> <span class="token number">1</span><span class="token punctuation">;</span> i <span class="token operator">&lt;=</span> <span class="token operator">+</span>level<span class="token punctuation">;</span> i<span class="token operator">++</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
                auditPath<span class="token punctuation">.</span><span class="token function">push</span><span class="token punctuation">(</span><span class="token punctuation">{</span>
                    <span class="token operator">...</span>userLevel<span class="token punctuation">[</span>i<span class="token punctuation">]</span><span class="token punctuation">,</span>
                    roleName<span class="token operator">:</span> <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">$t</span><span class="token punctuation">(</span><span class="token string">&apos;approvemanage.auditUsers&apos;</span><span class="token punctuation">)</span><span class="token punctuation">[</span>i<span class="token punctuation">]</span>
                <span class="token punctuation">}</span><span class="token punctuation">)</span>
            <span class="token punctuation">}</span>
            <span class="token keyword">let</span> formData <span class="token operator">=</span> <span class="token punctuation">{</span> name<span class="token punctuation">,</span> categories<span class="token punctuation">,</span> auditPath<span class="token punctuation">,</span> type<span class="token operator">:</span> RuleTypeEnum<span class="token punctuation">.</span>audit <span class="token punctuation">}</span><span class="token punctuation">;</span>
            <span class="token keyword">try</span> <span class="token punctuation">{</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>loading <span class="token operator">=</span> <span class="token boolean">true</span><span class="token punctuation">;</span>
                <span class="token keyword">if</span> <span class="token punctuation">(</span><span class="token operator">!</span><span class="token keyword">this</span><span class="token punctuation">.</span>queryParams<span class="token punctuation">.</span>name<span class="token punctuation">)</span> <span class="token punctuation">{</span>
                    <span class="token keyword">let</span> data <span class="token operator">=</span> <span class="token keyword">await</span> rule<span class="token punctuation">.</span><span class="token function">rule_add</span><span class="token punctuation">(</span>formData<span class="token punctuation">)</span><span class="token punctuation">;</span>
                    <span class="token keyword">this</span><span class="token punctuation">.</span>$message<span class="token punctuation">.</span><span class="token function">success</span><span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">$t</span><span class="token punctuation">(</span><span class="token string">&quot;approvemanage.msg.add&quot;</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
                <span class="token punctuation">}</span> <span class="token keyword">else</span> <span class="token punctuation">{</span>
                    <span class="token keyword">let</span> <span class="token punctuation">{</span> data <span class="token punctuation">}</span> <span class="token operator">=</span> <span class="token keyword">await</span> rule<span class="token punctuation">.</span><span class="token function">rule_edit</span><span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span>form<span class="token punctuation">.</span>_id<span class="token punctuation">,</span> formData<span class="token punctuation">)</span><span class="token punctuation">;</span>
                    <span class="token keyword">this</span><span class="token punctuation">.</span>$message<span class="token punctuation">.</span><span class="token function">success</span><span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">$t</span><span class="token punctuation">(</span><span class="token string">&quot;approvemanage.msg.edit&quot;</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
                <span class="token punctuation">}</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>loading <span class="token operator">=</span> <span class="token boolean">false</span><span class="token punctuation">;</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">back</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
            <span class="token punctuation">}</span> <span class="token keyword">catch</span> <span class="token punctuation">(</span>error<span class="token punctuation">)</span> <span class="token punctuation">{</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>loading <span class="token operator">=</span> <span class="token boolean">false</span><span class="token punctuation">;</span>
            <span class="token punctuation">}</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        <span class="token keyword">async</span> <span class="token function">validate</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token comment">// &#x8868;&#x5355;&#x6821;&#x9A8C;</span>
            <span class="token keyword">if</span> <span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span>form<span class="token punctuation">.</span>categories<span class="token punctuation">.</span>length <span class="token operator">==</span> <span class="token number">0</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>$message<span class="token punctuation">.</span><span class="token function">warning</span><span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">$t</span><span class="token punctuation">(</span><span class="token string">&quot;approvemanage.msg.categories&quot;</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
                <span class="token keyword">return</span><span class="token punctuation">;</span>
            <span class="token punctuation">}</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>$refs<span class="token punctuation">.</span>form<span class="token punctuation">.</span><span class="token function">validate</span><span class="token punctuation">(</span><span class="token parameter">valid</span> <span class="token operator">=&gt;</span> <span class="token punctuation">{</span>
                <span class="token keyword">if</span> <span class="token punctuation">(</span>valid<span class="token punctuation">)</span> <span class="token punctuation">{</span>
                    <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">submit</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
                <span class="token punctuation">}</span>
            <span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        <span class="token function">initAudit</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">{</span><span class="token comment">//&#x7F16;&#x8F91;&#x9875;&#x9762;,&#x5BA1;&#x67E5;&#x8DEF;&#x5F84;&#x548C;&#x7B49;&#x7EA7; &#x521D;&#x59CB;&#x5316;</span>
            <span class="token keyword">const</span> <span class="token punctuation">{</span> auditPath <span class="token punctuation">}</span> <span class="token operator">=</span> <span class="token keyword">this</span><span class="token punctuation">.</span>queryParams<span class="token punctuation">;</span>
            <span class="token comment">//&#x83B7;&#x53D6;&#x670D;&#x52A1;&#x7AEF;&#x6700;&#x5927;&#x7EA7;&#x522B;&#x804C;&#x4F4D; &#x5BF9;&#x5E94;&#x7684;&#x5BA2;&#x6237;&#x7AEF; &#x6700;&#x5C0F;&#x7B49;&#x7EA7;</span>
            <span class="token keyword">const</span> minLevel <span class="token operator">=</span> auditPath<span class="token punctuation">.</span><span class="token function">map</span><span class="token punctuation">(</span><span class="token parameter">line</span> <span class="token operator">=&gt;</span> line<span class="token punctuation">.</span>level<span class="token punctuation">)</span><span class="token punctuation">.</span><span class="token function">sort</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">[</span><span class="token number">0</span><span class="token punctuation">]</span><span class="token punctuation">;</span>
            <span class="token comment">//&#x8BBE;&#x7F6E;&#x9ED8;&#x8BA4;&#x9009;&#x4E2D;&#x7B49;&#x7EA7;</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>selectLevel<span class="token punctuation">.</span>default <span class="token operator">=</span> <span class="token constant">S2C</span><span class="token punctuation">[</span>minLevel<span class="token punctuation">]</span> <span class="token operator">+</span> <span class="token string">&apos;&apos;</span><span class="token punctuation">;</span>
            <span class="token comment">//&#x8BBE;&#x7F6E;&#x5BA1;&#x67E5;&#x8DEF;&#x5F84;</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">fmtAuditPath</span><span class="token punctuation">(</span><span class="token constant">S2C</span><span class="token punctuation">[</span>minLevel<span class="token punctuation">]</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        <span class="token keyword">async</span> <span class="token function">initDeptLevels</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">{</span>
            <span class="token keyword">const</span> <span class="token punctuation">{</span> data <span class="token punctuation">}</span> <span class="token operator">=</span> <span class="token keyword">await</span> dept<span class="token punctuation">.</span><span class="token function">dept_level</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
            <span class="token keyword">if</span><span class="token punctuation">(</span>data<span class="token punctuation">.</span>errorCode <span class="token operator">==</span> <span class="token number">0</span><span class="token punctuation">)</span><span class="token punctuation">{</span>
                <span class="token keyword">const</span> <span class="token punctuation">{</span> level <span class="token punctuation">}</span> <span class="token operator">=</span> data<span class="token punctuation">.</span>data<span class="token punctuation">;</span>
                <span class="token keyword">for</span> <span class="token punctuation">(</span><span class="token keyword">let</span> i <span class="token operator">=</span> <span class="token number">1</span><span class="token punctuation">;</span> i <span class="token operator">&lt;=</span> level<span class="token punctuation">;</span> i<span class="token operator">++</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
                    <span class="token keyword">if</span><span class="token punctuation">(</span>i <span class="token operator">&gt;</span> LimitLevel<span class="token punctuation">)</span> <span class="token keyword">break</span><span class="token punctuation">;</span>
                    <span class="token keyword">this</span><span class="token punctuation">.</span>selectLevel<span class="token punctuation">.</span>deptLevel<span class="token punctuation">.</span><span class="token function">push</span><span class="token punctuation">(</span><span class="token punctuation">{</span>
                        level<span class="token operator">:</span> i <span class="token operator">+</span> <span class="token string">&apos;&apos;</span><span class="token punctuation">,</span>
                        name<span class="token operator">:</span> <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">$t</span><span class="token punctuation">(</span><span class="token string">&apos;approvemanage.levelToStr&apos;</span><span class="token punctuation">)</span><span class="token punctuation">[</span>i <span class="token operator">-</span> <span class="token number">1</span><span class="token punctuation">]</span><span class="token punctuation">,</span>
                    <span class="token punctuation">}</span><span class="token punctuation">)</span>
                <span class="token punctuation">}</span>
            <span class="token punctuation">}</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        <span class="token function">fmtAuditPath</span><span class="token punctuation">(</span><span class="token parameter">level</span><span class="token punctuation">)</span><span class="token punctuation">{</span><span class="token comment">//&#x83B7;&#x53D6;&#x5BA1;&#x67E5;&#x4EBA;&#x5458;&#x8DEF;&#x5F84;</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>auditList <span class="token operator">=</span> <span class="token punctuation">[</span><span class="token punctuation">]</span><span class="token punctuation">;</span>
            <span class="token keyword">for</span> <span class="token punctuation">(</span><span class="token keyword">let</span> j <span class="token operator">=</span> <span class="token number">0</span><span class="token punctuation">;</span> j <span class="token operator">&lt;</span> level<span class="token punctuation">;</span> j<span class="token operator">++</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>auditList<span class="token punctuation">.</span><span class="token function">push</span><span class="token punctuation">(</span>autidUsers<span class="token punctuation">[</span>j<span class="token punctuation">]</span><span class="token punctuation">)</span>
            <span class="token punctuation">}</span>
        <span class="token punctuation">}</span>
    <span class="token punctuation">}</span><span class="token punctuation">,</span>
    <span class="token keyword">async</span> <span class="token function">created</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token comment">// &#x94A9;&#x5B50;&#x3001;&#x9875;&#x9762;&#x52A0;&#x8F7D;&#x524D;&#x89E6;&#x53D1;</span>
        <span class="token keyword">await</span> <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">initDeptLevels</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
        <span class="token keyword">if</span> <span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span>queryParams<span class="token punctuation">.</span>name<span class="token punctuation">)</span> <span class="token punctuation">{</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>form <span class="token operator">=</span> <span class="token keyword">this</span><span class="token punctuation">.</span>queryParams<span class="token punctuation">;</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">initAudit</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
        <span class="token punctuation">}</span>
        <span class="token keyword">if</span> <span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span>$route<span class="token punctuation">.</span>query<span class="token punctuation">.</span>to <span class="token operator">==</span> RouterToEnum<span class="token punctuation">.</span>edit <span class="token operator">&amp;&amp;</span> <span class="token operator">!</span><span class="token keyword">this</span><span class="token punctuation">.</span>queryParams<span class="token punctuation">.</span>name<span class="token punctuation">)</span> <span class="token punctuation">{</span>
            <span class="token keyword">this</span><span class="token punctuation">.</span>$router<span class="token punctuation">.</span><span class="token function">go</span><span class="token punctuation">(</span><span class="token operator">-</span><span class="token number">1</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
        <span class="token punctuation">}</span>
    <span class="token punctuation">}</span>
<span class="token punctuation">}</span><span class="token punctuation">;</span>
<span class="token operator">&lt;</span><span class="token operator">/</span>script<span class="token operator">&gt;</span>
</code></pre>
<h5 id="confjs">conf.js</h5>
<blockquote>
<p>&#x5BA1;&#x6279;&#x89C4;&#x5219;&#x914D;&#x7F6E;&#x6587;&#x4EF6;</p>
</blockquote>
<pre class="language-"><code class="lang-javascript"><span class="token comment">/**
 * &#x56FD;&#x9645;&#x5316; &#x6570;&#x636E;&#x914D;&#x7F6E;&#x6587;&#x4EF6;
 */</span>
<span class="token keyword">export</span> <span class="token keyword">const</span> fileTypeListZh <span class="token operator">=</span> <span class="token punctuation">[</span>
    <span class="token punctuation">{</span>
        label<span class="token operator">:</span> <span class="token string">&apos;&#x6536;&#x5165;&#x5408;&#x540C;&apos;</span><span class="token punctuation">,</span>
        value<span class="token operator">:</span> <span class="token number">1</span>
    <span class="token punctuation">}</span><span class="token punctuation">,</span>
    <span class="token punctuation">{</span>
        label<span class="token operator">:</span> <span class="token string">&apos;&#x652F;&#x51FA;&#x5408;&#x540C;&apos;</span><span class="token punctuation">,</span>
        value<span class="token operator">:</span> <span class="token number">2</span>
    <span class="token punctuation">}</span><span class="token punctuation">,</span>
    <span class="token punctuation">{</span>
        label<span class="token operator">:</span> <span class="token string">&apos;&#x4E0D;&#x6D89;&#x53CA;&#x91D1;&#x989D;&#x7279;&#x522B;&#x5408;&#x540C;&apos;</span><span class="token punctuation">,</span>
        value<span class="token operator">:</span> <span class="token number">3</span>
    <span class="token punctuation">}</span><span class="token punctuation">,</span>
    <span class="token punctuation">{</span>
        label<span class="token operator">:</span> <span class="token string">&apos;&#x4E0D;&#x6D89;&#x53CA;&#x91D1;&#x989D;&#x4E00;&#x822C;&#x5408;&#x540C;&apos;</span><span class="token punctuation">,</span>
        value<span class="token operator">:</span> <span class="token number">4</span>
    <span class="token punctuation">}</span><span class="token punctuation">,</span>
    <span class="token punctuation">{</span>
        label<span class="token operator">:</span> <span class="token string">&apos;&#x6587;&#x4E66;&apos;</span><span class="token punctuation">,</span>
        value<span class="token operator">:</span> <span class="token number">5</span>
    <span class="token punctuation">}</span><span class="token punctuation">,</span>
    <span class="token punctuation">{</span>
        label<span class="token operator">:</span> <span class="token string">&apos;&#x76F4;&#x63A5;&#x4FDD;&#x7BA1;&#x6587;&#x4E66;&apos;</span><span class="token punctuation">,</span>
        value<span class="token operator">:</span> <span class="token number">6</span>
    <span class="token punctuation">}</span>
<span class="token punctuation">]</span>

<span class="token keyword">export</span> <span class="token keyword">const</span> fileTypeListJa <span class="token operator">=</span> <span class="token punctuation">[</span>
    <span class="token operator">...</span>
<span class="token punctuation">]</span>

<span class="token keyword">export</span> <span class="token keyword">const</span> fileTypeListEn <span class="token operator">=</span> <span class="token punctuation">[</span>
    <span class="token operator">...</span>
<span class="token punctuation">]</span>

<span class="token keyword">export</span> <span class="token keyword">const</span> fileTypeEnumZh <span class="token operator">=</span> <span class="token punctuation">[</span>
    <span class="token string">&apos;&#x6536;&#x5165;&#x5408;&#x540C;&apos;</span><span class="token punctuation">,</span><span class="token string">&apos;&#x652F;&#x51FA;&#x5408;&#x540C;&apos;</span><span class="token punctuation">,</span><span class="token string">&apos;&#x4E0D;&#x6D89;&#x53CA;&#x91D1;&#x989D;&#x7279;&#x522B;&#x5408;&#x540C;&apos;</span><span class="token punctuation">,</span><span class="token string">&apos;&#x4E0D;&#x6D89;&#x53CA;&#x91D1;&#x989D;&#x4E00;&#x822C;&#x5408;&#x540C;&apos;</span><span class="token punctuation">,</span><span class="token string">&apos;&#x6587;&#x4E66;&apos;</span><span class="token punctuation">,</span><span class="token string">&apos;&#x76F4;&#x63A5;&#x4FDD;&#x7BA1;&#x6587;&#x4E66;&apos;</span>
<span class="token punctuation">]</span>
<span class="token keyword">export</span> <span class="token keyword">const</span> fileTypeEnumJa <span class="token operator">=</span> <span class="token punctuation">[</span><span class="token operator">...</span><span class="token punctuation">]</span>
<span class="token keyword">export</span> <span class="token keyword">const</span> fileTypeEnumEn <span class="token operator">=</span> <span class="token punctuation">[</span><span class="token operator">...</span><span class="token punctuation">]</span>

<span class="token keyword">export</span> <span class="token keyword">const</span> docListZh <span class="token operator">=</span> <span class="token punctuation">[</span>
    <span class="token punctuation">{</span>
        label<span class="token operator">:</span> <span class="token string">&apos;&#x8BFE;&#x957F;&apos;</span><span class="token punctuation">,</span>
        value<span class="token operator">:</span> <span class="token number">1</span>
    <span class="token punctuation">}</span><span class="token punctuation">,</span><span class="token punctuation">{</span>
        label<span class="token operator">:</span> <span class="token string">&apos;&#x90E8;&#x957F;&apos;</span><span class="token punctuation">,</span>
        value<span class="token operator">:</span> <span class="token number">2</span>
    <span class="token punctuation">}</span><span class="token punctuation">,</span><span class="token punctuation">{</span>
        label<span class="token operator">:</span> <span class="token string">&apos;&#x4E8B;&#x4E1A;&#x90E8;&#x957F;&#x6216;&#x4E2D;&#x5FC3;&#x957F;&apos;</span><span class="token punctuation">,</span>
        value<span class="token operator">:</span> <span class="token number">3</span>
    <span class="token punctuation">}</span><span class="token punctuation">,</span><span class="token punctuation">{</span>
        label<span class="token operator">:</span> <span class="token string">&apos;&#x603B;&#x7ECF;&#x7406;&apos;</span><span class="token punctuation">,</span>
        value<span class="token operator">:</span> <span class="token number">4</span>
    <span class="token punctuation">}</span>
<span class="token punctuation">]</span>
<span class="token keyword">export</span> <span class="token keyword">const</span> docListJa <span class="token operator">=</span> <span class="token punctuation">[</span>
    <span class="token operator">...</span>
<span class="token punctuation">]</span>
<span class="token keyword">export</span> <span class="token keyword">const</span> docListEn <span class="token operator">=</span> <span class="token punctuation">[</span>
    <span class="token operator">...</span>
<span class="token punctuation">]</span>

<span class="token keyword">import</span> <span class="token punctuation">{</span> 
    SUserLevelEnum <span class="token keyword">as</span> SULEnum<span class="token punctuation">,</span> 
    CUserLevelEnum <span class="token keyword">as</span> CULEnum 
<span class="token punctuation">}</span> <span class="token keyword">from</span> <span class="token string">&apos;@/utils/Enum/VEnum&apos;</span><span class="token punctuation">;</span>

<span class="token comment">/**
 * &#x5BA2;&#x6237;&#x7AEF; &#x7528;&#x6237;&#x5BA1;&#x67E5;&#x5217;&#x8868;
 */</span>
<span class="token keyword">export</span> <span class="token keyword">const</span> autidUsers <span class="token operator">=</span> <span class="token punctuation">[</span> CULEnum<span class="token punctuation">.</span>class<span class="token punctuation">,</span> CULEnum<span class="token punctuation">.</span>dept<span class="token punctuation">,</span> CULEnum<span class="token punctuation">.</span>center<span class="token punctuation">,</span> CULEnum<span class="token punctuation">.</span>boss <span class="token punctuation">]</span><span class="token punctuation">;</span>

<span class="token comment">/**
 * &#x5BA2;&#x6237;&#x7AEF;&#x5BF9;&#x5E94;&#x670D;&#x52A1;&#x7AEF;
 */</span>
<span class="token keyword">export</span> <span class="token keyword">const</span> <span class="token constant">C2S</span> <span class="token operator">=</span> <span class="token punctuation">{</span>
    <span class="token punctuation">[</span>CULEnum<span class="token punctuation">.</span>class<span class="token punctuation">]</span><span class="token operator">:</span> SULEnum<span class="token punctuation">.</span>class<span class="token punctuation">,</span>
    <span class="token punctuation">[</span>CULEnum<span class="token punctuation">.</span>dept<span class="token punctuation">]</span><span class="token operator">:</span> SULEnum<span class="token punctuation">.</span>dept<span class="token punctuation">,</span>
    <span class="token punctuation">[</span>CULEnum<span class="token punctuation">.</span>center<span class="token punctuation">]</span><span class="token operator">:</span> SULEnum<span class="token punctuation">.</span>center<span class="token punctuation">,</span>
    <span class="token punctuation">[</span>CULEnum<span class="token punctuation">.</span>boss<span class="token punctuation">]</span><span class="token operator">:</span> SULEnum<span class="token punctuation">.</span>boss
<span class="token punctuation">}</span>

<span class="token comment">/**
 * &#x670D;&#x52A1;&#x7AEF;&#x5BF9;&#x5E94;&#x5BA2;&#x6237;&#x7AEF;
 */</span>
<span class="token keyword">export</span> <span class="token keyword">const</span> <span class="token constant">S2C</span> <span class="token operator">=</span> <span class="token punctuation">{</span>
    <span class="token punctuation">[</span>SULEnum<span class="token punctuation">.</span>class<span class="token punctuation">]</span><span class="token operator">:</span> CULEnum<span class="token punctuation">.</span>class<span class="token punctuation">,</span>
    <span class="token punctuation">[</span>SULEnum<span class="token punctuation">.</span>dept<span class="token punctuation">]</span><span class="token operator">:</span> CULEnum<span class="token punctuation">.</span>dept<span class="token punctuation">,</span>
    <span class="token punctuation">[</span>SULEnum<span class="token punctuation">.</span>center<span class="token punctuation">]</span><span class="token operator">:</span> CULEnum<span class="token punctuation">.</span>center<span class="token punctuation">,</span>
    <span class="token punctuation">[</span>SULEnum<span class="token punctuation">.</span>boss<span class="token punctuation">]</span><span class="token operator">:</span> CULEnum<span class="token punctuation">.</span>boss
<span class="token punctuation">}</span>

<span class="token comment">/**
 * &#x7528;&#x6237;&#x7B49;&#x7EA7;
 */</span>
<span class="token keyword">export</span> <span class="token keyword">const</span> userLevel <span class="token operator">=</span> <span class="token punctuation">{</span>
    <span class="token punctuation">[</span>CULEnum<span class="token punctuation">.</span>class<span class="token punctuation">]</span><span class="token operator">:</span> <span class="token punctuation">{</span> role<span class="token operator">:</span> <span class="token operator">-</span><span class="token number">1</span><span class="token punctuation">,</span> level<span class="token operator">:</span> SULEnum<span class="token punctuation">.</span>class<span class="token punctuation">}</span><span class="token punctuation">,</span>
    <span class="token punctuation">[</span>CULEnum<span class="token punctuation">.</span>dept<span class="token punctuation">]</span><span class="token operator">:</span> <span class="token punctuation">{</span> role<span class="token operator">:</span> <span class="token operator">-</span><span class="token number">1</span><span class="token punctuation">,</span> level<span class="token operator">:</span> SULEnum<span class="token punctuation">.</span>dept<span class="token punctuation">}</span><span class="token punctuation">,</span>
    <span class="token punctuation">[</span>CULEnum<span class="token punctuation">.</span>center<span class="token punctuation">]</span><span class="token operator">:</span> <span class="token punctuation">{</span> role<span class="token operator">:</span> <span class="token operator">-</span><span class="token number">1</span><span class="token punctuation">,</span> level<span class="token operator">:</span> SULEnum<span class="token punctuation">.</span>center<span class="token punctuation">}</span><span class="token punctuation">,</span>
    <span class="token punctuation">[</span>CULEnum<span class="token punctuation">.</span>boss<span class="token punctuation">]</span><span class="token operator">:</span> <span class="token punctuation">{</span> role<span class="token operator">:</span> <span class="token operator">-</span><span class="token number">1</span><span class="token punctuation">,</span> level<span class="token operator">:</span> SULEnum<span class="token punctuation">.</span>boss<span class="token punctuation">}</span>
<span class="token punctuation">}</span>

<span class="token comment">/**
 * &#x9650;&#x5236; &#x7B49;&#x7EA7;&#x5217;&#x8868;
 * &#x76EE;&#x524D;&#x6700;&#x5927;&#x4E3A;&#x56DB;&#x7EA7;
 */</span>
<span class="token keyword">export</span> <span class="token keyword">const</span> LimitLevel <span class="token operator">=</span> <span class="token number">4</span><span class="token punctuation">;</span>
</code></pre>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="activate.html" class="navigation navigation-prev " aria-label="Previous page: activate">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="sealmanage.html" class="navigation navigation-next " aria-label="Next page: sealmanage">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"approvemanage","level":"2.10.2","depth":2,"next":{"title":"sealmanage","level":"2.10.3","depth":2,"path":"src/views/sealmanage.md","ref":"src/views/sealmanage.md","articles":[]},"previous":{"title":"activate","level":"2.10.1","depth":2,"path":"src/views/activate.md","ref":"src/views/activate.md","articles":[]},"dir":"ltr"},"config":{"plugins":["chapter-fold","-lunr","-search","search-pro","-highlight","prism"],"styles":{"website":"styles/website.css"},"pluginsConfig":{"prism":{"css":["prismjs/themes/prism-tomorrow.css"]},"chapter-fold":{},"search-pro":{},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","author":"Gj","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"合同管理","language":"zh-hans","gitbook":"3.2.3","description":"合同管理Web端"},"file":{"path":"src/views/approvemanage.md","mtime":"2020-03-02T05:36:51.632Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2020-03-07T04:19:36.591Z"},"basePath":"../..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../../gitbook/gitbook.js"></script>
    <script src="../../gitbook/theme.js"></script>
    
        
        <script src="../../gitbook/gitbook-plugin-chapter-fold/chapter-fold.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-search-pro/jquery.mark.min.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-search-pro/search.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

